<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <script src="https://unpkg.com/vue@next"></script>

    <title>Document</title>
</head>


<body>
    <a href="https://v3.cn.vuejs.org/guide/instance.html#%E7%BB%84%E4%BB%B6%E5%AE%9E%E4%BE%8B-property">生命周期钩子</a>
    <img src="https://v3.cn.vuejs.org/images/lifecycle.svg" alt="">

    <script type="text/javascript">
        Vue.createApp({
            data() {
                return { count: 1 }
            },
            // mounted updated unmounted
            created() {
                // `this` 指向 vm 实例
                console.log('count is: ' + this.count) // => "count is: 1"
            }
        })
    </script>

</body>

</html>